package com.unjuanable.safetymonitor.domain.controlmng;

import com.unjuanable.safetymonitor.domain.common.validator.DateTimeValidator;
import com.unjuanable.safetymonitor.domain.common.validator.InputTextValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopeMetadata;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

/**
 * @description
 */
@Component
public class ControlBuilderFactory {

    private final InputTextValidator inputTextValidator;
    private final DateTimeValidator dateTimeValidator;

    @Autowired
    public ControlBuilderFactory(InputTextValidator inputTextValidator, DateTimeValidator dateTimeValidator) {
        this.inputTextValidator = inputTextValidator;
        this.dateTimeValidator = dateTimeValidator;
    }

    public ControlBuilder create() {
        return new ControlBuilder(inputTextValidator, dateTimeValidator);
    }
}
